package Srsc;

public class Person {
    private int code;
    private String name;
    private char sex;
    Person(int code, String name, char sex){
        setCode(code);
        setName(name);
        setSex(sex);
    }
    int getCode(){
        return code;
    }
    String getName(){
        return name;
    }
    char getSex(){
        return sex;
    }
    void setCode(int code){
        this.code = code;
    }
    void setName(String name){
        this.name = name;
    }
    void setSex(char sex){
        this.sex = sex;
    }
}